package de.msiggi.Sportsdata.Testfiles;

import java.rmi.RemoteException;


import de.msiggi.Sportsdata.Webservices.League;
import de.msiggi.Sportsdata.Webservices.SportsdataLocator;
import de.msiggi.Sportsdata.Webservices.SportsdataSoap;
import javax.xml.rpc.ServiceException;

public class TestSoccerLeagues {
	
	public static void main(String[] args) {
		try {
			SportsdataSoap soccer = new SportsdataLocator().getSportsdataSoap();
			League [] leagues = soccer.getAvailLeagues();
			for (League league : leagues) {
				System.out.println(league.getLeagueID() + " - " + league.getLeagueName());
			}
		} catch (ServiceException e) {
			e.printStackTrace();
		} catch (RemoteException e) {
			e.printStackTrace();
		}
	}

}
